package com.mytomcat.servlet.impl;

import com.mytomcat.servlet.MyHttpServlet;
import com.mytomcat.servlet.MyHttpServletRequest;
import com.mytomcat.servlet.MyHttpServletResponse;

// 内置的404Servlet
final public class _404Servlet extends MyHttpServlet {

    @Override
    public void doGet(MyHttpServletRequest request, MyHttpServletResponse response) throws Exception {
        doPost(request, response);
    }

    @Override
    public void doPost(MyHttpServletRequest request, MyHttpServletResponse response) throws Exception {
        response.returnJsonResponse(404,"404 Not Found " + request);
    }
}
